var url=require('url')

var obj=new URL('http://127.0.0.1:3000/pinglun?name=www&message=sssss')
console.log(obj)
/*
URL {
  href: 'http://127.0.0.1:3000/pinglun?name=www&message=sssss',
  origin: 'http://127.0.0.1:3000',
  protocol: 'http:',
  username: '',
  password: '',
  host: '127.0.0.1:3000',
  hostname: '127.0.0.1',
  port: '3000',
  pathname: '/pinglun',
  search: '?name=www&message=sssss',
  searchParams: URLSearchParams { 'name' => 'www', 'message' => 'sssss' },
  hash: ''
}
*/